import request from "@/api/request";
import { apiClusterJava } from "@/api/root";

export const getHomeJobList = (data) => {
  return request.webservice(
    "mp",
    `${apiClusterJava}/api-yp/open/index`,
    "/famous/getJobList",
    data
  );
};

export const getHomeJobDetail = (data) => {
  return request.webservice(
    "mp",
    `${apiClusterJava}/api-yp/open/index`,
    "/famous/getJobInfo",
    data
  );
};

export const doCollectJob = (data) => {
  return request.webservice(
    "mp",
    `${apiClusterJava}/api-yp/open/index`,
    "/famous/joinFavorites",
    data
  );
};

export const removeCollectJob = (data) => {
  return request.webservice(
    "mp",
    `${apiClusterJava}/api-yp/open/index`,
    "/famous/removeFavorites",
    data
  );
};

export const getCompanyJobFavoriteList = (data) => {
  return request.webservice(
    "mp",
    `${apiClusterJava}/api-yp/open/index`,
    "/famous/getFavoritesJobList",
    data
  );
};

export const getEnterpriseRegionList = (data) => {
  return request.webservice(
    "mp",
    `${apiClusterJava}/api-yp/open/index`,
    "/famous/getRegionList",
    data
  );
};

export const getConsultConfig = (data) => {
  return request.webservice(
    "mp",
    `${apiClusterJava}/api-yp/open/index`,
    "/consultOpen/getConsultConfig",
    data
  );
};



